<?php defined('IN_YuLin') || exit('NO PERMIT!'); ?>
{template index/header}
	<div class="container containerUser fix pt15">
		<div class="userMain mgb10">
            <ul class="queue">
            	<li class="now">
                    <span>选择验证方式</span>
                    <i></i>
                </li>
                <li>
                    <span>身份验证</span>
                    <i></i>
                </li>
                <li>
                    <span>修改密码</span>
                    <i></i>
                </li>
                <li>
                    <span>完成</span>
                    <i></i>
                </li>
            </ul>
          
                <ul class="submitContent mglr30 mgt15">
                	<li>
                        <span>账号：</span>
                        <input autocomplete="off" placeholder="请输入账号" class="userInput" type="text" id="user"/>
                    </li>
                    <li>
                        <span></span>
                        <a class="submitBtn"> 确定</a>
                    </li>
                </ul>
           
        </div>
	</div>
	<script>
    	$('.submitBtn').click(function(){
            // 检查表单填写内容是否有误
            var user = $('#user').val();
            if(!user)
            {
                layer.alert('请输入账号', {
                  title: '温馨提示'
                });
                return;
            }
            var url = "{U('index/index/check')}";
            $.post(url,{username:user},function(data){
                console.log(data);
                if(data == 1)
                {
                    layer.alert('无此账号', {
                        title: '温馨提示'
                    });
                    return;
                }else if(data == 0){
                    location.href = "{U('member/resetpwd/step2')}&user="+user+"";
                }
            });
        });	
    </script>
{template member/footer}
